import { createSlice } from '@reduxjs/toolkit'

const menuSlice = createSlice({
  name: 'menu',
  initialState: {
    menuList: []
  },
  reducers: {
    setMenu: (state, action) => {
      state.menuList = action.payload
    }
  }
})

export const { setMenu } = menuSlice.actions

export default menuSlice.reducer
